package net.shopxx.service.impl;

import javax.annotation.Resource;

import net.shopxx.bean.Pager;
import net.shopxx.dao.ProductConsultDao;
import net.shopxx.entity.Member;
import net.shopxx.entity.Product;
import net.shopxx.entity.ProductConsult;
import net.shopxx.service.ProductConsultService;

import org.springframework.stereotype.Service;

/**
 * Service实现类 - 产品评论
 */

@Service
public class ProductConsultServiceImpl extends BaseServiceImpl<ProductConsult, String> implements ProductConsultService {

	@Resource
	private ProductConsultDao productConsultDao;
	@Resource
	public void setBaseDao(ProductConsultDao productConsultDao) {
		super.setBaseDao(productConsultDao);
	}
	@Override
	public Pager getMemberConsultPager(Member member, Pager pager) {
		return productConsultDao.getMemberConsultPager(member,pager);
	}
	@Override
	public Pager getProductConsultPager(Product product, Pager pager) {
		return productConsultDao.getProductConsultPager(product,pager);
	}
	@Override
	public Pager getMemberOwnConsultPager(Member member, Pager pager) {
		return productConsultDao.getMemberOwnConsultPager(member,pager);
	}
	

}